<div style="width: 100%;position: relative"  >
    <input type="text" class="form-control" [(ngModel)]="inputData" (keyup)="keyUp($event)"(blur)="loseFocus()"
           (click)="getFocus()">
    <div #selectDiv
         style="max-height: 400px;border: 1px solid #ccc;border-top: 0px;position: absolute;left: 0;right:0;top: 34px;padding-top: 2px;z-index: 99;background-color: white;overflow-y: auto"
         hidden="hidden">
        <div style="height: 34px;padding: 0px 12px ;font-size: 14px; line-height: 34px; color: #555;cursor: pointer;" (click)="selectData(data)"
             *ngFor="let data of showData"
             (mouseenter)="mouseEnter($event) " (mouseleave)="mouseLeave($event)">{{data}}
        </div>
        <div style="height: 34px;padding: 0px 12px ;font-size: 14px; line-height: 34px; color: #555;"
             *ngIf="showData.length==0"
        >没有匹配信息
        </div>

    </div>
</div>
